package P030_RandomSeed;

import org.junit.Test;

import java.util.Random;

/**
 * 若非必要,不要随便设置随机数种子
 */
public class RandomSeed {

    @Test
    public void Test1() {
        Random random = new Random(1000);
        for (int i = 0; i < 4; i++) {
            System.out.println("第"+i+"个随机数:"+random.nextInt());
        }
        Math.random();
    }

}
